#include <iostream>

using namespace std;
typedef long long LL;

LL n, m, v;

int main()
{
	cin >> n >> m >> v;
	if(m < n - 1 || m > (n - 1) * (n - 2) / 2) cout << -1 << endl;
	else
	{
		for(int i = 1; i <= n; i++) 
		{
			if(i != v)
			{
				cout << i << " " << v << endl;
				m--;
			}
		}
		int w = 1;
		if(w == v) w = 2;
		for(int i = 1; i <= n; i++)
		{
			for(int j = 1; j <= n; j++)
			{
				if(i != j && i != w && i != v && j != w && j != v)
				{
					cout << i << " " << j << endl;
					m--;
					if(m == 0) return 0;
				}
			}
		}
	}
}
